<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function page_info_user(){ 
    global $user;
    //add_css
    drupal_add_css(drupal_get_path('module', 'tbreal') . '/assets/css/manager_account.css');
    //drupal_add_css(drupal_get_path('module', 'tbnd_system') . '/assets/css/manager_account.css');
    drupal_add_css(drupal_get_path('module', 'tbnd_plugin') . '/upload/css/fileuploader.css');
    //drupal_add_css(drupal_get_path('module', 'tbnd_plugin') . '/upload/css/custom_fileuploader.css');
    //add_js
    drupal_add_js(drupal_get_path('module', 'tbnd_plugin') . '/upload/js/fileuploader.js');
    drupal_add_js(drupal_get_path('module', 'tbnd_system') . '/assets/js/update_info_system.js');
    
    $i_user = md_get_info_user( $user->uid );
    $data['i_user'] = $i_user;
    $data['user'] = $user;
    $data['form'] = theme('form_update_user' , $data);
    $data['title'] = 'Sửa thông tin cá nhân';
    return theme('thong_tin_ca_nhan' , $data);
}

/*--------------------change_pass_user-------------------*/
function page_change_pass_user(){
     global $user;
    //add_css
    drupal_add_css(drupal_get_path('module', 'tbreal') . '/assets/css/manager_account.css');
    //drupal_add_css(drupal_get_path('module', 'tbnd_system') . '/assets/css/manager_account.css');
    drupal_add_css(drupal_get_path('module', 'tbnd_plugin') . '/upload/css/fileuploader.css');
    //drupal_add_css(drupal_get_path('module', 'tbnd_plugin') . '/upload/css/custom_fileuploader.css');
    //add_js
    drupal_add_js(drupal_get_path('module', 'tbnd_plugin') . '/upload/js/fileuploader.js');
    drupal_add_js(drupal_get_path('module', 'tbnd_system') . '/assets/js/update_info_system.js');
    
    $i_user = md_get_info_user( $user->uid );
    $data['i_user'] = $i_user;
    $data['user'] = $user;
    $data['title'] = 'Đổi mật khẩu';
    $data['form'] = theme('form_change_pass_user' , $data);
    return theme('thong_tin_ca_nhan' , $data);
}
/*--------------------change_pass_user-------------------*/
?>
